package br.ufmg.dcc.vod.remoteworkers.functional.simplesystem;
import java.rmi.RemoteException;

import br.ufmg.dcc.vod.remoteworkers.CommandError;
import br.ufmg.dcc.vod.remoteworkers.async.AbstractQueueBasedCommandInterested;

public class StringCommandInterested extends AbstractQueueBasedCommandInterested<String, String>  {

	private static final long serialVersionUID = 1L;

	public StringCommandInterested(int port) throws RemoteException {
		super(port);
	}

	@Override
	public void realCommandError(String id, CommandError error) {
		error.getCause().printStackTrace();
	}

	@Override
	public void realCommandResponse(String id, String response) {
		System.out.println(response);
	}
}
